import request from '@/utils/request'

// 查询积分明细列表
export function listIntegraldetails(query) {
  return request({
    url: '/chy/integraldetails/list',
    method: 'get',
    params: query
  })
}

// 查询积分明细详细
export function getIntegraldetails(id) {
  return request({
    url: '/chy/integraldetails/' + id,
    method: 'get'
  })
}

// 新增积分明细
export function addIntegraldetails(data) {
  return request({
    url: '/chy/integraldetails',
    method: 'post',
    data: data
  })
}

// 修改积分明细
export function updateIntegraldetails(data) {
  return request({
    url: '/chy/integraldetails',
    method: 'put',
    data: data
  })
}

// 删除积分明细
export function delIntegraldetails(id) {
  return request({
    url: '/chy/integraldetails/' + id,
    method: 'delete'
  })
}
